﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ModuleSettings
{
    public class XmlModuleSettingsProvider : ModuleSettingsProviderBase
    {
        XmlUserSettingsRepo m_Repo;
        protected override IUserSettingsRepository Repo
        {
            get
            {
                if (m_Repo == null)
                {
                    m_Repo = new XmlUserSettingsRepo();
                    m_Repo.Load(DataSource, ModuleName);
                }
                return m_Repo;
            }
            set
            {
            }
        }

        public override string Name
        {
            get
            {
                return "XmlModuleSettingsProvider";
            }
        }
    }
}
